]> dgit.raspbian.org Git - gnome-shell.git/commit
st: Fix box-shadow drawing with prerendered_texture
authorDaniel García Moreno <daniel@endlessm.com>
Wed, 18 Sep 2019 14:50:49 +0000 (16:50 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 18 Sep 2019 16:09:36 +0000 (16:09 +0000)
commitcf00231aa8dc1faadd4007ab4c3efe22b2de6e9a
tree834714327e79009dc8d2f017950be281fadf590f
parent5c3f4f5f8b64f7d0f80aa9852b94a96c3737fcbe
st: Fix box-shadow drawing with prerendered_texture

The use of box-shadow on a StWidget that has a background-gradient was
not been rendered correctly, the shadow borders was calculated inside
the st_theme_node_prerender_shadow function and in the case that we've a
prerendered_texture the max_borders was not calculated and are 0.

This patch creates a new static function to compute shadow maximum
borders copying the code from st_theme_node_prerender_shadow, and call
this new method in the case that we've a prerendered_texture.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1186
src/st/st-theme-node-drawing.c